decorative banner

Project reduceProject() Method


    app.project.reduceProject(array_of_items)

Description

    Replicates the functionality of File > Reduce Project.

Parameters

    array_of_items

    the items to which the project is to be reduced

Returns

    Integer; the total number of items removed.

Example

    var theItems = new Array();
    theItems[theItems.length] = app.project.item(1);
    theItems[theItems.length] = app.project.item(3);
       
    app.project.reduceProject(theItems);